const express = require('express');
const router=express.Router();
// 导入服务层对象
const service=require('../services/videoservices');
// 引用multer库用来处理'Content-Type':'multipart/form-data'
const multer=require('multer');
let upload=multer({dest:'./files'});


router.get('/list',service.list);

router.post('/add',upload.single('file'),service.add);

module.exports=router;